<?php
namespace app\common\model;

class Kfgl extends App
{
    /**
    * 关联模型
    */
    public $assoc = [];
    
    public function initialize()
    {        
        $this->form = [
            'id' => [
            	'type' => 'integer',
            	'name' => 'ID',
            	'elem' => 'hidden',
            ],
            'name' => [
                'type' => 'string',
                'name' => '管理员名称',
                'elem' => 'text',
            ],
            'wxid' => [
                'type' => 'string',
                'name' => '微信ID',
                'elem' => 'text',
            ],
            //其他字段
        ];
        call_user_func_array(['parent', __FUNCTION__], func_get_args());
    }
    
    /**
    // 表单分组
    public $formGroup = [
        'advanced' => '高级选项'
    ];
    */
    
    /**
    * 数据验证 
    */
    protected $validate = [];
}
